package com.example.mybatisplusdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatisplusdemo.model.domain.PaymentRecord;
import com.example.mybatisplusdemo.model.dto.PaymentRequestDTO;
import com.example.mybatisplusdemo.model.dto.PaymentResponseDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxp
 * @since 2025-07-16
 */
public interface IPaymentRecordService extends IService<PaymentRecord> {

    PaymentResponseDTO createPayment(PaymentRequestDTO paymentRequest);

    // 查询支付状态
    PaymentResponseDTO queryPayment(String paymentNo);

    // 处理支付回调
    boolean processPaymentCallback(String paymentNo, String callbackContent);

    // 退款
    boolean refund(String paymentNo);
}
